home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11222 < prev    next >
Encoding:
Text File  |  2002-07-05  |  1.8 KB  |  72 lines

  1. <HTML>
  2.  
  3. <HEAD>
  4.     <LINK REL="stylesheet" TYPE="text/css" HREF="%6css/default.css">
  5. </HEAD>
  6.  
  7. <script language="Javascript">
  8. //LOCALIZATION STRINGS
  9. var _strNameAlert = "Please limit the name to 100 characters.";
  10. var _strDescAlert = "Please limit the description to 256 characters.";
  11. </script>
  12.  
  13.  
  14. <BODY TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5">
  15.  
  16. <SCRIPT language=Javascript>
  17.  
  18. function onSubmit()
  19. {
  20.     // check for group name and description 
  21.     var strName = document.forms[0].groupName.value;
  22.     var strDesc = document.forms[0].groupDesc.value;
  23.     if (strName.length > 100)
  24.     {
  25.        alert(_strNameAlert);
  26.        return;
  27.     }
  28.     if (strDesc.length >= 256)
  29.     {
  30.        alert(_strDescAlert);
  31.        return;
  32.     }
  33.     document.forms[0].submit();
  34. }
  35.  
  36. function onCancel()
  37. {
  38.     document.forms[0].reset();
  39. }
  40.  
  41. </SCRIPT>
  42.  
  43. <!-- Content -->
  44. <form action="%1" method=POST target="target_frame">
  45. <table CELLPADDING="0" CELLSPACING="5" border=0 width=100%>
  46.     <tr><td class="list">Group Name:</td>    <td class="list"><input type=text size=50 name="groupName" value="%2"></td></tr>
  47.     <tr><td class="list">Description:</td>    <td class="list"><textarea wrap="virtual" name="groupDesc" rows="7" cols="50">%3</textarea></td></tr>
  48.     <tr><td class="list">%4</td> <td class="list">%5</td></tr>
  49. </table>
  50.  
  51. <br> 
  52.  
  53. <table align=center CELLPADDING="0" CELLSPACING="5" border=0 width=20%>
  54. <tr>
  55.     <td><table cellpadding=0 border=0> 
  56.         <tr>
  57.             <td class="clsButton" align=middle nowrap>
  58.                 <div class="clsButton"><a href="javascript:onSubmit()">Update</a></div>
  59.             </td>
  60.  
  61.             <td class="clsButton" align=middle nowrap>
  62.                 <div class="clsButton"><a href="javascript:onCancel()">Reset</a></div>  
  63.             </td>
  64.         </tr>
  65.     </table></td>
  66. </tr>    
  67. </table>
  68.  
  69. </form>
  70. </BODY>
  71. </HTML>
  72.